import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//消耗盘点
const request = {
    //根据条件分页查询消耗盘点
    consumptionInventory (params) {
        return httpPost({
            url: '/material/consumptionInventory/listByEntity',
            params
        })
    },
    //新增消耗盘点
    AddConsumptionInventory (params) {
        return httpPost({
            url: '/material/consumptionInventory/create',
            params
        })
    },
    //修改消耗盘点
    EditConsumptionInventory (params) {
        return httpPost({
            url: '/material/consumptionInventory/update',
            params
        })
    },

    //修改消耗盘点明细
    EditConsumptionInventoryList (params) {
        return httpPost({
            url: '/material/consumptionInventory/updateList',
            params
        })
    },

    // 冲红单
    redSingle (billId) {
        return httpGet({
            url: '/material/consumptionInventory/initRedBill',
            params: {
                billId
            }
        })
    },

}

export default request